CC=gcc
CFLAGS=-std=gnu99 -Wall -lrt -lpthread
RELEASE=../release
SRC=../src/map.c 		\
	../src/util.c 		\
	../src/hashing.h 	\
	../src/cluster.c	\
	../src/commands.c 	\
	../src/persistence.c\
	../src/networking.c \
	../src/serializer.c \
	../src/list.c


memento: $(SRC)
	$(CC) $(CFLAGS) $(SRC) -o memento

test: dt_test.c
	mkdir -p $(RELEASE) && $(CC) $(CFLAGS) $(SRC) -o $(RELEASE)/dt_test dt_test.c && $(RELEASE)/dt_test
